/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-03-07 09:34:11
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-03-07 09:46:45
 */
export default{
    install:(app,options)=>{

        app.config.globalProperties.$translate = (key)=>{
            return key.split(".").reduce((o,i)=>{
                if(o) return o[i]
            },options)
        }
        app.provide('i18n', options)
    }
}